#exits are actually pretty easy, as they don't have the multiple players.  Or should i allow team games? :)
class exit_c:
    def __init__(self, x, y, playerNumber, anim, exitSizeX = 50, exitSizeY = 50):
        self.x = x
        self.y = y
        self.playerNumber = playerNumber
        self.player = None
        self.anim = anim
        self.exitSizeX = exitSizeX / 2
        self.exitSizeY = exitSizeY
        self.frame = 0
        self.frameDelay = 0
        self.isLastFrame = 0

    def draw(self, ox, oy):
        self.frame, self.isLastFrame, self.frameDelay = self.anim.draw(self.x - ox, self.y - oy, self.frame, True, True, self.frameDelay)
		
    #returns true if the points passed in are inside the exit's draw box
    def isInside(self, x, y):
        if x > self.x - self.exitSizeX and x < self.x + self.exitSizeX and y > self.y - self.exitSizeY and y <= self.y:
            return True
        else:
            return False
	
	#increases the player who owns this exit's score
    def incScore(self):
        self.player.incScore(1)
